// ***********************************************************************
// Project			: Micua
// Assembly         : Micua.Model
// Author           : iceStone
// Created          : 2013-11-23 15:28
//
// Last Modified By : iceStone
// Last Modified On : 2014-01-04 20:39
// ***********************************************************************
// <copyright file="Post.cs" company="Wedn.Net">
//     Copyright (c) Wedn.Net. All rights reserved.
// </copyright>
// <summary>缺少注释</summary>
// ***********************************************************************

namespace Micua.Model
{
    using System;
    using System.Collections.Generic;
    
    /// <summary>
    /// 评论 实体类.
    /// </summary>
    /// <remarks>
    ///  2013-11-18 19:40 Created By iceStone
    /// </remarks>
    public partial class Comment
    {
        public Comment()
        {
            this.AuthorName = string.Empty;
            this.AuthorEmail = string.Empty;
            this.AuthorUrl = string.Empty;
            this.Content = string.Empty;
            this.Status = 0;
            this.ChildComments = new HashSet<Comment>();
            this.Metas = new HashSet<CommentMeta>();
        }
    
        /// <summary>
        /// 设置或读取Id字段.
        /// </summary>
        /// <value>Id字段.</value>
        public int Id { get; set; }
        /// <summary>
        /// 设置或读取评论者名称。
        /// </summary>
        /// <value>评论者名称.</value>
        public string AuthorName { get; set; }
        /// <summary>
        /// 设置或读取评论者邮箱。
        /// </summary>
        /// <value>评论者邮箱.</value>
        public string AuthorEmail { get; set; }
        /// <summary>
        /// 设置或读取评论者链接。
        /// </summary>
        /// <value>评论者链接.</value>
        public string AuthorUrl { get; set; }
        /// <summary>
        /// 设置或读取评论时间。
        /// </summary>
        /// <value>评论时间.</value>
        public System.DateTime PubDate { get; set; }
        /// <summary>
        /// 设置或读取评论正文。
        /// </summary>
        /// <value>评论正文.</value>
        public string Content { get; set; }
        /// <summary>
        /// 设置或读取评论状态。
        /// 0:等待审核;1:审核通过;2:回收站;3:垃圾评论
        /// </summary>
        /// <value>评论状态.</value>
        public byte Status { get; set; }
        /// <summary>
        /// 设置或读取UserId字段.
        /// </summary>
        /// <value>UserId字段.</value>
        public Nullable<int> UserId { get; set; }
        /// <summary>
        /// 设置或读取发表物ID。
        /// </summary>
        /// <value>发表物ID.</value>
        public int PostId { get; set; }
        /// <summary>
        /// 设置或读取父评论ID。
        /// </summary>
        /// <value>父评论ID.</value>
        public Nullable<int> ParentId { get; set; }
    
        /// <summary>
        /// 设置或读取子评论集合。
        /// </summary>
        /// <value>子评论集合.</value>
        public virtual ICollection<Comment> ChildComments { get; set; }
        /// <summary>
        /// 设置或读取父评论。
        /// </summary>
        /// <value>父评论.</value>
        public virtual Comment ParentComment { get; set; }
        /// <summary>
        /// 设置或读取评论发表物。
        /// </summary>
        /// <value>评论发表物.</value>
        public virtual Post Post { get; set; }
        /// <summary>
        /// 设置或读取评论元数据集合。
        /// </summary>
        /// <value>评论元数据集合.</value>
        public virtual ICollection<CommentMeta> Metas { get; set; }
        /// <summary>
        /// 设置或读取User.
        /// </summary>
        /// <value>User.</value>
        public virtual User User { get; set; }
    }
}
